package chuishop.yiqimaicai.service;

import chuishop.yiqimaicai.pojo.Employee;

import java.util.List;

public interface EmployeeService {
    /**
     * 显示所有员工信息
     * @return
     */
    List<Employee> findAllEmployee();

    /**
     * 添加新员工
     * @param employee
     * @return
     */
    boolean addEmployee(Employee employee);

    /**
     * 按id批量删除员工
     * @param ids
     * @return
     */
    boolean deleteEmployee(String[] ids);

    /**
     * 修改员工信息
     * @param employee
     * @return
     */
    boolean updateEmployee(Employee employee);

    /**
     * 根据姓名查询员工信息
     * @return
     */
    List<Employee> searchEmployeeByname(String name);

    boolean loginEmployee(String idpassword);
    Employee login(Integer id, String password);

    List<Employee> findEmplyeeBylimits(int limits);











}
